package top.deepdesigner.service;

import top.deepdesigner.pojo.DtsAdmin;

import java.util.List;

/**
 * Start up <br/>
 * Created with IntelliJ IDEA. <br/>
 * Project Name: shop_manage <br/>
 * Author: duanruiqing <br/>
 * DateTime: 2022/9/20 星期二 16:29:51 <br/>
 */
public interface DtsAdminService {
  /**
   * 根据用户名找管理员信息
   *
   * @param username 用户名
   * @return {@link DtsAdmin}
   */
  DtsAdmin findDtsAdminByUsername(String username);

  Long getAdminCount();

  List<DtsAdmin> getAdminList(Integer page, Integer limit, String sort, String order, String username);

  List<DtsAdmin> getAdminList();

  DtsAdmin createAdmin(DtsAdmin dtsAdmin);

  DtsAdmin updateAdmin(DtsAdmin dtsAdmin);

  void deleteAdmin(Integer id);

  void updatePassword(Integer adminId,String newPassword);
}
